package com.elai.baseconfig.domain;

import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据库同步对象 sys_database_sync
 *
 * @author elai
 * @date 2022-05-07
 */
public class SysDatabaseSync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 租户ID */
    @Excel(name = "租户ID")
    private String lesseeId;

    /** 数据库类型 */
    @Excel(name = "数据库类型")
    private String dbType;

    /** 地址 */
    @Excel(name = "地址")
    private String dbUrl;

    /** 端口 */
    @Excel(name = "端口")
    private Integer dbPort;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 数据库名 */
    @Excel(name = "数据库名")
    private String dbName;

    /** 表名 */
    @Excel(name = "表名")
    private String tableName;

    /** 同步类型01手动02例行 */
    @Excel(name = "同步类型01手动02例行")
    private String syncType;

    /** 时间类型01每天 */
    @Excel(name = "时间类型01每天")
    private String dateUnit;

    /** 时间值 */
    @Excel(name = "时间值")
    private String dateValue;

    /** 状态Y可用N不可用 */
    @Excel(name = "状态Y可用N不可用")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setLesseeId(String lesseeId)
    {
        this.lesseeId = lesseeId;
    }

    public String getLesseeId()
    {
        return lesseeId;
    }
    public void setDbType(String dbType)
    {
        this.dbType = dbType;
    }

    public String getDbType()
    {
        return dbType;
    }
    public void setDbUrl(String dbUrl)
    {
        this.dbUrl = dbUrl;
    }

    public String getDbUrl()
    {
        return dbUrl;
    }
    public void setDbPort(Integer dbPort)
    {
        this.dbPort = dbPort;
    }

    public Integer getDbPort()
    {
        return dbPort;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setDbName(String dbName)
    {
        this.dbName = dbName;
    }

    public String getDbName()
    {
        return dbName;
    }
    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableName()
    {
        return tableName;
    }
    public void setSyncType(String syncType)
    {
        this.syncType = syncType;
    }

    public String getSyncType()
    {
        return syncType;
    }
    public void setDateUnit(String dateUnit)
    {
        this.dateUnit = dateUnit;
    }

    public String getDateUnit()
    {
        return dateUnit;
    }
    public void setDateValue(String dateValue)
    {
        this.dateValue = dateValue;
    }

    public String getDateValue()
    {
        return dateValue;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("lesseeId", getLesseeId())
            .append("dbType", getDbType())
            .append("dbUrl", getDbUrl())
            .append("dbPort", getDbPort())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("dbName", getDbName())
            .append("tableName", getTableName())
            .append("syncType", getSyncType())
            .append("dateUnit", getDateUnit())
            .append("dateValue", getDateValue())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
